The submit button allows a visitor to send their completed form to you (as you defined in the FORM METHOD properties section). (See discussion and background for more details).
ATTRIBUTE |
REQUIRED? |
DESCRIPTION |
NAME=" " |
Optional |
When the user submits the form, no message usually accompanies the data. However, using the name option, the name of the submit button can also be included in the submitted data. See example below. |
ACCEPT=" " |
Optional |
By default, the text on the Submit button reads ‘Submit’. However, this text can be changed by using the VALUE property. |
What did you think of my Website?
<INPUT TYPE="submit" NAME="Loved_it" VALUE="Loved it">
<INPUT TYPE="submit" NAME="Hated_it" VALUE="Hated it">
This form returns all the other form data, as well as which submit button was used to submit the form.
NOTE |
For this example to work it must be inside form tags (<FORM .. ..> .. .. </FORM>). The entire form code, including all the examples, is ready for you to use. |